package com.gk.company.view.bottom.item
{
	import com.gk.company.view.event.GoFriendCompanyEvent;
	
	import flash.events.MouseEvent;
	
	import org.robotlegs.mvcs.Mediator;
	
	public class FriendItemViewMediator extends Mediator
	{
		[Inject]
		public var view:FriendItemView;
		
		public function FriendItemViewMediator()
		{
			super();
		}
		
		override public function onRegister():void
		{
			view.buttonMode = true;
			eventMap.mapListener(view,MouseEvent.CLICK,viewCKHandler,MouseEvent);
		}
		
		private function viewCKHandler(e:MouseEvent):void
		{
			dispatch(new GoFriendCompanyEvent(GoFriendCompanyEvent.GO_FRIEND_COMPANY,view.userInfoVo));
		}		
		
	}
}